tools: turbostat: Add checks for failure of fgets() and fscanf()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 11 Sep 2018 02:07:28 +0000 (03:07 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit7f91a119343ce96fa5eafcab38b5d3b24772bc2e
tree0070b3158257a8764bf391b98384f674018ec396
parentbb991ecf1e4c8b896d778c335c93aa819d40c793
tools: turbostat: Add checks for failure of fgets() and fscanf()

Most calls to fgets() and fscanf() are followed by error checks.
Add an exit-on-error in the remaining cases.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name tools-turbostat-Add-checks-for-failure-of-fgets-and-.patch
tools/power/x86/turbostat/turbostat.c